//
//  aboutViewController.m
//  ALS3.0
//
//  Created by 崔 on 2017/1/9.
//  Copyright © 2017年 guomianxiang. All rights reserved.
//

#import "aboutViewController.h"

#import <SVProgressHUD.h>

@interface aboutViewController ()
@property (weak, nonatomic) IBOutlet UIWebView *webView;

@end

@implementation aboutViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    NSURL *url = [NSURL URLWithString:@"http://www.cn-als.com/about/?129.html"];
    
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    
    [self.webView loadRequest:request];
    
    
    UIButton *left = [[UIButton alloc]init];
    left.titleEdgeInsets = UIEdgeInsetsMake(0, -6, 0, 0);
    left.imageEdgeInsets = UIEdgeInsetsMake(0, -16, 0, 0);
    [left setImage:[UIImage imageNamed:@"ARROW---LEFT"] forState:(UIControlStateNormal)];
    [left setImage:[UIImage imageNamed:@"ARROW---LEFT-in"] forState:(UIControlStateHighlighted)];
    [left sizeToFit];
    
    [left addTarget:self.navigationController action:@selector(popViewControllerAnimated:) forControlEvents:(UIControlEventTouchUpInside)];
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithCustomView:left];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewWillAppear:(BOOL)animated{
    
    [SVProgressHUD showWithStatus:@"正在加载...请稍后"];
    
}


- (void)viewDidAppear:(BOOL)animated{
    
    [SVProgressHUD dismiss];
    
    
}
@end
